<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>float特殊效果</title>
</head>
<body>
    <!-- 
       1.行内元素或者行内块元素float后会变为块元素，可以设置宽高
     -->
     <span style="width:100px;height:40px;background-color: firebrick;float: left;">行内元素</span>
</body>
</html>